import java.time.LocalDate;
import java.time.Period;
import java.time.format.DateTimeFormatter;
import java.util.Scanner;

public class Test6 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请您输入您的生日，格式：yyyy-MM-dd");
        String sr = sc.next();
     DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd");
     LocalDate ld = LocalDate.parse(sr,df);


     Period p = Period.between(ld,LocalDate.now());
     int y = p.getYears();
     int m = p.getMonths();
     int d = p.getDays();
        System.out.println("您已经活了："+y+"年零"+m+"月零"+d+"天了");
    }
}
